import Vue from 'vue'
import Router from 'vue-router'
 
//组件模块
import ToolApp from '@/pages/ToolApp'
import home from '@/view/home/home'
import ToolList from '@/view/ToolList/ToolList'
import Facade from '@/view/Facade/Facade'
import AllFlow from '@/view/AllFlow/AllFlow'
import Login from "@/view/Login/Login"

Vue.use(Router)
 
export default new Router({
  routes: [
    { 
      path: '/', 
      redirect:'/login',
      name: 'ToolApp',
      component: ToolApp,
      children:[
        {
          path:'home',
          name:'home',
          component: home
        },
        {
          path:'toollist',
          name:'toolist',
          component:ToolList
        },
        {
          path:'facade',
          name:'facade',
          component:Facade
        },
        {
          path:'allflow',
          name:'allflow',
          component:AllFlow
        },
        {
          path:'login',
          name:'login',
          component:Login
        }
      ]
    },
  ]
})
